//
//  AnimationDelegate.h
//  BaseCode
//
//  Created by 曹连华 on 2019/7/4.
//  Copyright © 2019 曹连华. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

typedef void(^AnimationDidStartBlock )(CAAnimation* animation);
typedef void(^AnimationDidStopBlock )(CAAnimation* animation, BOOL flag);

@interface AnimationDelegate : NSObject <CAAnimationDelegate>

+ (instancetype)animationDidStartBlock:(nullable AnimationDidStartBlock)didStar
                      animationDidStop:(nullable AnimationDidStopBlock)didStop;
- (instancetype)initWithAnimationDidStartBlock:(nullable AnimationDidStartBlock)didStar
                              animationDidStop:(nullable AnimationDidStopBlock)didStop;
@end

NS_ASSUME_NONNULL_END
